package graph.visitors;

import java.util.LinkedList;
import java.util.List;

import org.eclipse.jdt.core.dom.ASTVisitor;
import org.eclipse.jdt.core.dom.SimpleName;

public class SimpleNameCollector extends ASTVisitor {
	private List<SimpleName> _names = new LinkedList<SimpleName>();
	
	@Override
	public boolean visit(SimpleName node) {
		_names.add(node);
		return super.visit(node);
	}
	
	public List<SimpleName> getSimpleNames() {
		return _names;
	}
}
